import jsonschema

json_data = {
    "message":"操作成功",
    "mobile":"13812345678"
}
schema = {
    "type":"object",
    "properties":{
        "message":{"pattern":"操作成功"},
        "mobile":{"pattern":"^1[3-9][0-9]{9}$"}

    }
}
jsonschema.validate(instance=json_data,schema=schema)